package com.example.whatrubbish.service;

import com.example.whatrubbish.model.Admin;
import com.example.whatrubbish.model.LoginRecord;
import com.example.whatrubbish.vo.Criteria;

import java.util.List;
import java.util.Map;

public interface LoginRecordService {
    int insertSelective(Map record, Admin admin);

    /**
     * 查询上次登录记录
     * @param loginAdminId
     * @return
     */
    LoginRecord selectLastLoginRecord(Long loginAdminId);

    /**
     * 查询用户所有登录记录
     * @param criteria
     * @return
     */
    Long selectAllCountByAdminId(Criteria criteria);
    List<LoginRecord> selectAllByAdminId(Criteria criteria);
}
